package cn.zhoujing.security.demo.mapper;

import cn.zhoujing.security.demo.entity.UserRoleLink;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
* @author JingZhou
* @description 针对表【user_role_link】的数据库操作Mapper
* @createDate 2024-02-12 22:51:55
* @Entity cn.zhoujing.security.demo.entity.UserRoleLink
*/
public interface UserRoleLinkMapper extends BaseMapper<UserRoleLink> {

    /**
     * 根据用户id获取角色名称
     * @param userId 用户id
     * @return 角色名称
     */
    Set<String> selectRoleCodesByUserId(@Param("userId") long userId);
}




